package cnf

type ChargeMoneyDistribution struct {
	ValueString string  `json:"valueString"`
	Count       int     `json:"count"`
	Rate        float32 `json:"rate"`
	Min         int     `json:"-"`
	Max         int64   `json:"-"`
}
type ChargeLevelDistributionV1 struct {
	LevelString string  `json:"levelString"`
	Count       int     `json:"count"`
	Rate        float32 `json:"rate"`
	Min         int     `json:"min"`
	Max         int     `json:"max"`
}

func FetchChargeLevelMoneyCnf() []*ChargeLevelDistributionV1 {
	return []*ChargeLevelDistributionV1{
		&ChargeLevelDistributionV1{
			Min:         1,
			Max:         5,
			LevelString: "1~5级",
		},
		&ChargeLevelDistributionV1{
			Min:         6,
			Max:         10,
			LevelString: "6~10级",
		},
		&ChargeLevelDistributionV1{
			Min:         11,
			Max:         20,
			LevelString: "11~20级",
		},
		&ChargeLevelDistributionV1{
			Min:         21,
			Max:         30,
			LevelString: "21~30级",
		},
		&ChargeLevelDistributionV1{
			Min:         31,
			Max:         40,
			LevelString: "31~40级",
		},
		&ChargeLevelDistributionV1{
			Min:         41,
			Max:         50,
			LevelString: "41~50级",
		},
		&ChargeLevelDistributionV1{
			Min:         51,
			Max:         60,
			LevelString: "51~60级",
		},
		&ChargeLevelDistributionV1{
			Min:         61,
			Max:         70,
			LevelString: "61~70级",
		},
		&ChargeLevelDistributionV1{
			Min:         71,
			Max:         80,
			LevelString: "71~80级",
		},
		&ChargeLevelDistributionV1{
			Min:         81,
			Max:         90,
			LevelString: "81~90级",
		},
		&ChargeLevelDistributionV1{
			Min:         91,
			Max:         100,
			LevelString: "91~100级",
		},
		&ChargeLevelDistributionV1{
			Min:         101,
			Max:         110,
			LevelString: "101~110级",
		},
		&ChargeLevelDistributionV1{
			Min:         111,
			Max:         120,
			LevelString: "111~120级",
		}, &ChargeLevelDistributionV1{
			Min:         121,
			Max:         130,
			LevelString: "121~130级",
		},
		&ChargeLevelDistributionV1{
			Min:         131,
			Max:         140,
			LevelString: "131~140级",
		},
		&ChargeLevelDistributionV1{
			Min:         141,
			Max:         150,
			LevelString: "141~150级",
		},
		&ChargeLevelDistributionV1{
			Min:         151,
			Max:         160,
			LevelString: "151~160级",
		},
		&ChargeLevelDistributionV1{
			Min:         161,
			Max:         170,
			LevelString: "161~170级",
		},
		&ChargeLevelDistributionV1{
			Min:         171,
			Max:         180,
			LevelString: "171~180级",
		},
		&ChargeLevelDistributionV1{
			Min:         181,
			Max:         190,
			LevelString: "181~190级",
		},
		&ChargeLevelDistributionV1{
			Min:         191,
			Max:         200,
			LevelString: "191~200级",
		},
		&ChargeLevelDistributionV1{
			Min:         201,
			Max:         250,
			LevelString: "201~250级",
		},
		&ChargeLevelDistributionV1{
			Min:         251,
			Max:         300,
			LevelString: "251~300级",
		},
		&ChargeLevelDistributionV1{
			Min:         301,
			Max:         400,
			LevelString: "301~400级",
		},
		&ChargeLevelDistributionV1{
			Min:         401,
			Max:         500,
			LevelString: "401~500级",
		},
		&ChargeLevelDistributionV1{
			Min:         501,
			Max:         10000,
			LevelString: "大于501级",
		},
	}
}

func FetchChargeMoneyDistCnf() []*ChargeMoneyDistribution {
	return []*ChargeMoneyDistribution{
		&ChargeMoneyDistribution{
			Min:         0,
			Max:         2,
			ValueString: "2",
		},
		&ChargeMoneyDistribution{
			Min:         3,
			Max:         8,
			ValueString: "3~8",
		},
		&ChargeMoneyDistribution{
			Min:         8,
			Max:         20,
			ValueString: "8~20",
		},
		&ChargeMoneyDistribution{
			Min:         20,
			Max:         50,
			ValueString: "20~50",
		},
		&ChargeMoneyDistribution{
			Min:         50,
			Max:         100,
			ValueString: "50~100",
		},
		&ChargeMoneyDistribution{
			Min:         100,
			Max:         200,
			ValueString: "100~200",
		},
		&ChargeMoneyDistribution{
			Min:         200,
			Max:         500,
			ValueString: "200~500",
		},
		&ChargeMoneyDistribution{
			Min:         500,
			Max:         1000,
			ValueString: "500~1000",
		},
		&ChargeMoneyDistribution{
			Min:         1000,
			Max:         2000,
			ValueString: "1000~2000",
		},
		&ChargeMoneyDistribution{
			Min:         2000,
			Max:         5000,
			ValueString: "2000~5000",
		},
		&ChargeMoneyDistribution{
			Min:         5000,
			Max:         10000,
			ValueString: "5000~10000",
		},
		&ChargeMoneyDistribution{
			Min:         10000,
			Max:         20000,
			ValueString: "1万~2万",
		},
		&ChargeMoneyDistribution{
			Min:         20001,
			Max:         100000000000,
			ValueString: "大于2万",
		},
	}
}
